<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import Link from '@/components/utlis/Link.vue'
import HelloWorld from './components/HelloWorld.vue'
</script>

<template>

  <div class="common-layout">
    <el-container>
      <el-header class="header">
        <div class="center" style="line-height: 60px;">
          测试特性专用
        </div>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <Link />
        </el-aside>
        <el-main class="main">
          <RouterView></RouterView>
        </el-main>
      </el-container>
      <el-footer>
        <div class="center">测试特性专用Demo</div>
      </el-footer>
    </el-container>
  </div>
</template>

<style lang="less" scoped>
.common-layout {
  height: 100vh;

  .header {
    border-bottom: 1px solid rgb(220, 223, 230);
    background-color: rgb(255, 255, 255);
  }

  .el-aside {
    border-right: 1px solid rgb(220, 223, 230);
  }

  .center {
    text-align: center;
    line-height: 48px;
  }

  .main {
    background-color: rgb(255, 255, 255);
    max-height: calc(100vh - 120px);
  }

  .el-footer {
    border-top: 1px solid rgb(220, 223, 230);
    background-color: rgb(255, 255, 255);
  }

  .el-container {
    height: 100vh;
  }
}
</style>
